﻿
using System;
using RpcModular;

namespace HttpApiGateway.Interface
{
    /// <summary>
    /// 模块配置
    /// </summary>
    public interface IModularConfig
    {
        /// <summary>
        /// 是否需要登陆认证
        /// </summary>
        bool IsAccredit { get; set; }
        /// <summary>
        ///   Api 接口地址生成格式
        /// </summary>
        string ApiRouteFormat { get; set; }
        /// <summary>
        /// 获取用户授权状态
        /// </summary>
        /// <param name="accreditId">状态吗</param>
        /// <returns>授权状态</returns>
        IUserState GetAccredit(Guid accreditId);
    }
}